package org.example.spi.dubbo;

import org.apache.dubbo.common.extension.ExtensionLoader;
import org.example.common.PrintService;

/**
 * @author liangzj
 * @date 2021/5/23 10:08
 */
public class DubboSPIDemo {

    public static void main(String[] args) {
        PrintService printService = ExtensionLoader
                .getExtensionLoader(PrintService.class)
                .getAdaptiveExtension();

        printService.printInfo();
    }

}
